import request from '@/utils/request'

export default {
  //登录
  login(formInfo) {
    return request({
      url: `/educenter/member/login`,
      method: 'post',
      data: formInfo
    })
  },

  //获取用户信息
  getLoginUserInfo(){
    return request({
      url: `/educenter/member/getLoginInfo`,
      method: 'get',
      // headers: {'token': cookie.get('guli_token')}
    })
  },
  getMemberByMobile(mobile){
    return request({
        url: `/educenter/member/getMemberByMobile`,
        method: 'post',
        params: {mobile},
    })
  },
  // 获取二维码
  qrcode(){
    return request({
        url: `/educenter/member/qrcode`,
        method: 'get',
    })
  },
  // 检查二维码扫描情况
  CheckQRCode(code){
    return request({
        url: `/educenter/member/qrcode/${code}`,
        method: 'get',
    })
  },


}